package org.example.controller;

import org.example.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Description: 测试控制层
 * @Author: liu-hao
 * @Date: 2021-12-16 22:08
 * @Version: 1.0
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    ITestService testService;

    @RequestMapping("/hello")
    public String hello(@RequestParam("name") String name) {
        return testService.getWelcomeWords(name);
    }
}
